export const categoryType:OptionsType[] =[
    {value:'todo',label:'任务'},
    {value:'project',label:'项目'},
    {value:'product',label:'产品'},
    {value:'customer',label:'客户'},
    {value:'expense',label:'支出'},
    {value:'income',label:'收入'}
]
export const getCategoryLabel = (value: string): string | undefined => {
    return categoryType.find(item => item.value === value)?.label;
};